package com.crazyhat.crazyhat.attribute;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 社团动态公开范围枚举
 */
@Getter
@AllArgsConstructor
public enum PostPublicScopeEnum implements IEnum<String>{

    UserVisible("用户可见"),
    MembersVisible("成员可见"),
    AdminVisible("管理员可见"),
    Hidden("已隐藏");

    @JsonValue
    private final String description;

    @Override
    public String getValue() {
        return this.description;
    }
}
